package com.springboot2.shiro;

import com.springboot2.shiro.comm.entity.RedisOptions;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class Springboot2ShiroJpaApplication {

    @Bean // Redis
    @ConfigurationProperties(prefix = "spring.redis")
    public RedisOptions buildRedisOptions() {
        return new RedisOptions();
    }

    public static void main(String[] args) {
        SpringApplication.run(Springboot2ShiroJpaApplication.class, args);
    }
}
